<template>
  <div>
    <el-table ref="table" :data="dataSource" :row-class-name="tableRowClassName">
      <el-table-column fixed="left" label="序号" width="70" />
    </el-table>
  </div>
</template>

<script>
export default {
  methods: {
    tableRowClassName({ row, rowIndex }) {
      if (row.isExceed) {
        return 'isExceed'
      }
      return ''
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .isExceed{
  background-color: #FFEFEF;
}
</style>
